package com.qianfeng.mybatis.pojo;


import java.util.List;

public class Book {

  private Long bId;
  private String bName;
  private Double bPrice;
  private Long pId;



  public Long getBId() {
    return bId;
  }

  public void setBId(Long bId) {
    this.bId = bId;
  }


  public String getBName() {
    return bName;
  }

  public void setBName(String bName) {
    this.bName = bName;
  }


  public Double getBPrice() {
    return bPrice;
  }

  public void setBPrice(Double bPrice) {
    this.bPrice = bPrice;
  }


  public Long getPId() {
    return pId;
  }

  public void setPId(Long pId) {
    this.pId = pId;
  }

  @Override
  public String toString() {
    return "Book{" +
            "bId=" + bId +
            ", bName='" + bName + '\'' +
            ", bPrice=" + bPrice +
            ", pId=" + pId +
            '}';
  }

  public Book() {
  }

  public Book(Long bId, String bName, Double bPrice, Long pId) {
    this.bId = bId;
    this.bName = bName;
    this.bPrice = bPrice;
    this.pId = pId;
  }
}
